package com.xj.onetosix;

public class JingTai {

    static int a = 2;  //静态static修饰的变量可以直接通过类名访问

    int b = 3;  //实例变量

    public static void my() {
        System.out.println("myyyy");  //静态static修饰的方法可以直接通过类名访问
    }


    public static void main(String[] args) {
      /*  com.xj.onetosix.JingTai j1 = new com.xj.onetosix.JingTai();
        j1.b=10;
        System.out.println(j1.b);

        com.xj.onetosix.JingTai j2 = new com.xj.onetosix.JingTai();
        System.out.println(j2.b);*/

        JingTai j3 = new JingTai();
        j3.a = 44;

        System.out.println(JingTai.a);
    }
}
